package tongcheng.com.tongcheng.ui.yemian.shenfen.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.Bind;
import tongcheng.com.tongcheng.R;
import tongcheng.com.tongcheng.base.BaseActivity;
import tongcheng.com.tongcheng.utils.Setting;

public class QIangOrderActivity extends BaseActivity {

    @Bind(R.id.back)
    ImageView mBack;
    @Bind(R.id.shenfen_title)
    TextView mShenfenTitle;
    @Bind(R.id.qiang_daili)
    Button mQiangDaili;
    @Bind(R.id.qiang_geren)
    Button mQiangGeren;

   /* @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_qiang_order);
        ButterKnife.bind(this);
    }*/

    @Override
    public Integer initResid() {
        return R.layout.activity_qiang_order;
    }

    @Override
    public void initCreate(Bundle savedInstanceState) {
        mBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();

            }
        });


        mQiangDaili.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Setting.setShenfen(3);
                startactivity(QIangOrderActivity.this,WanShanZiliao_QiyeActivity.class);
               /* MyRequest request = new MyRequest(ConStans.UpShenfen_Url, RequestMethod.POST);
                request.add("type", 3);
                request.add("phone", Setting.getPhone());
                CallServer.getInstance().  addPost(request, 1, new OnCallBack() {
                    @Override
                    public void OnSuccess(int what, String json, Object ject) {
                        StatusBean statusBean = GsonUtil.GsonToBean(json, StatusBean.class);
                        if (statusBean != null) {
                            if (statusBean.msg != null) {
                                ShowToast.showToast(statusBean.msg);
                            }
                            if (statusBean.status == 1) {
                                startactivity(QIangOrderActivity.this,WanShanZiliao_QiyeActivity.class);
                            }
                        }
                    }
                });*/

            }
        });


        mQiangGeren.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Setting.setShenfen(4);
                startactivity(QIangOrderActivity.this,InstallPeopleActivity.class);
               /* MyRequest request = new MyRequest(ConStans.UpShenfen_Url, RequestMethod.POST);
                request.add("type", 4);
                request.add("phone", Setting.getPhone());
                CallServer.getInstance().  addPost(request, 1, new OnCallBack() {
                    @Override
                    public void OnSuccess(int what, String json, Object ject) {
                        StatusBean statusBean = GsonUtil.GsonToBean(json, StatusBean.class);
                        if (statusBean != null) {
                            if (statusBean.msg != null) {
                                ShowToast.showToast(statusBean.msg);
                            }
                            if (statusBean.status == 1) {
                                startactivity(QIangOrderActivity.this,InstallPeopleActivity.class);
                            }
                        }
                    }
                });*/

            }
        });
    }
}
